import { getProjectList, PostItem } from '@/utils/students/projectKu';
import { request } from 'umi';
//列表接口
export let getList = (params: getProjectList) => {
    return request('/sypt/project/list', { params })
};
//收藏
// export let changeNum = (data: string) => {
//     return request('/sypt/concern/project', {
//         method: 'POST',
//         data
//     })
// };
export let changeNum = (id: string) => {
    return request(`/sypt/concern/project/${id}`)
}
//取消收藏
export let delNum = (id: string) => {
    return request('/sypt/concern/project', {
        method: 'DELETE',
        id
    })
}
//详情图片
export let getImgList = (id: any) => {
    return request(`/sypt/project/taskInfo/${id}`)
}
//教师信息
export let getTeacherInfo = (id: any) => {
    return request(`/sypt/project/teacherInfo/${id}`);
}
//实训评论数据
export let getContent = (params: any) => {
    return request('/sypt/discuss/list', { params })
}
//发布评论
export let Postcomment = (data: PostItem) => {
    return request('/sypt/discuss', {
        method: 'POST',
        data
    })
}
//获取标题详情
export let detailList = (versionId: string) => {
    return request(`sypt/project/info/${versionId}`)
}
